<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="cn.news.dao.*,cn.news.entity.*,util.*"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'topic_update.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <c:set var="result" value="${requestScope.result}" scope="request" />
  <c:if test="${result gt 0}">
  <h1>修改标题成功</h1>
  </c:if>
  <c:if test="${result le 0}">
  <h1>修改标题失败</h1>
  </c:if>
  
    <span id="timer" > 10</span>秒返回,<a href="topicList">返回</a>
   </body>
   
  <script>
  
  var d=document.getElementById("timer").innerHTML;
  window.setInterval(function() {
	  
	  d--;
	  if(d<1)
		  {
		  window.location="topicList";
		  
		  return;
		  }
  	document.getElementById("timer").innerHTML=d;
  }, 1000);
  
  
  </script>
  </body>
</html>
